/***************************************************
 @Name :        小铭同学
 @Time :        2025-09-03
 @Email :       LiaoMingWJ233@163.com
 @Comment :     家电状态
 @FileName :    equipment_status.h
 @Version :     1.0
****************************************************/


#ifndef EQUIPMENT_STATUS_H
#define EQUIPMENT_STATUS_H

#include <QWidget>
#include <QTimer>
#include <QString>

#include "keydevice.h"
#include "tcp.h"

#include "iodevice.h"

namespace Ui {
class Equipment_Status;
}

class Equipment_Status : public QWidget
{
    Q_OBJECT
    
public:
    explicit Equipment_Status(QWidget *parent = nullptr);
    ~Equipment_Status();
    
    void label_dog_Status(QPixmap pixmap);
    
private:
    Ui::Equipment_Status *ui;
    
    KeyDevice *key;
    
    QTimer * my_timer;
    
    void changeKey();
    
    TCP* tcp;  // 使用单例TCP指针
    
    QString tcp_data;
    
    QTimer * my_tcp;
    
    ioDevice * io;
    
    QTimer * io_timer;
    
    void printData();
    
};

#endif // EQUIPMENT_STATUS_H
